//ex10_10_6.cpp
#include "Move.h"

Move::Move(double a, double b)
{
    x = a; 
    y = b;
}

void Move::showmove() const
{
    std::cout << "x = " << x << ", y = " << y << '\n';

}

Move Move::add(const Move &m) const
{
    Move temp;

    temp.x = x + m.x;
    temp.y = y + m.y;

    return temp;
}

void Move::reset(double a, double b)
{
    x = a;
    y = b;
}